<div class="form-group">
	<div class="col-sm-2 control-label">
		<?php echo $form->label($model,'bid_source_type'); ?>
	</div>
	<div class="col-sm-3">
		<?php echo $form->textFieldCAutoComplete($model,'bid_source_type',array(
		    'dataProvider' => array(
		        'class'  =>  'BidHistory',
		        'attribute'   =>  'bid_source_type',
		     )
		),array('class'=>'form-control'));?>
	</div>
</div> 

<div class="form-group">
	<div class="col-sm-2 control-label">
		<?php echo $form->label($model,'created'); ?>
	</div>
	<div class="col-sm-3">
	      <?php 
	      	 echo $form->dropDownList($model,'last_days',array(
					'All','Last 5 Days','Last 10 Days','Last 15 Days','Last 20 Days','Last 25 Days'	
			),array('class'=>'grid-dropdown-menu'));
	      ?>	
	</div>
</div>
<div class="form-group">
	<div class="col-sm-2 control-label">
		<?php echo $form->label($model,'amount'); ?>
	</div>
	<div class="col-sm-2">
		<?php 
	      	 echo $form->dropDownList($model,'amount_sort',array(
					'<=','>=','='	
			),array('class'=>'grid-dropdown-menu'));
	      ?>
	</div>
	<div class='col-sm-3'>
				<div class="input-group">
				      <?php echo $form->textField($model,'amount',array('class'=>'form-control'));?>
			      <span class="input-group-btn">
			        <button class="btn btn-default grid-btn" type="submit">Search</button>
			      </span>
			 </div>	  
	</div>
</div>

<script>
	$('.dropdown-menu a').on('click',function(){
		$('.search-amount').val($(this).attr('value')).siblings('input');
		$('.search-time').val($(this).html());
	})
</script>